<template>
  <span>{{ retail }}</span>
</template>
<script>
import { getRetail } from '@/api/retail'

export default {
  data() {
    return { retail: null }
  },
  beforeMount() {
    getRetail(this.params.value)
      .then(response => {
        this.retail = response.Data.Name
      })
      .catch(error => {
        console.log(error)
        this.retail = '未知错误'
      })
  }
}
</script>
